Construct a list
Example (Step 4)
struct recdata{
int
number;
AnsiString
code;
recdata *nextrecord;
};
Ex. 5601
OUTPUT:
10This is the first
record20This is the second
record53This is the third
record
while (startrecord != NULL) {
listrecord = startrecord;
cout << listrecord->number ;
cout << listrecord->code ;
startrecord = listrecord->nextrecord;
delete listrecord;
}